<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja" id="main">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>WindowLayer 类</title>
	<link rel="stylesheet" href="../inc/css/style.min.css" />
	<script type="text/javascript" src="../inc/js/lib/jquery-1.11.1.min.js"></script>
	<script type="text/javascript" src="../inc/js/common.js"></script>
</head>
<body>

	<div class="main">

		<h1 class="main__title--h1 main__title--h1--v07">WindowLayer 类</h1>
		<ul class="breadcrumb">
			<li>JS 库</li>
			<li>&gt;</li>
			<li>WindowLayer 类</li>
		</ul>
		<p>包含游戏的窗口层。</p>
		<div class="main__section">
			<h2 class="main__title--h2">构造函数</h2>
<pre class="main__pre--code">
WindowLayer ()
</pre>
		</div><!-- /main__section -->


		<div class="main__section">
			<h2 class="main__title--h2">列表</h2>
			<b>方法</b>
			<ul class="main__ul--inline">
				<li><a href="#m01">addChild</a></li>
				<li><a href="#m02">addChildAt</a></li>
				<li><a href="#m03">move</a></li>
				<li><a href="#m04">removeChild</a></li>
				<li><a href="#m05">removeChildAt</a></li>
				<li><a href="#m06">update</a></li>
			</ul>

			<b>属性</b>
			<ul class="main__ul--inline">
				<li><a href="#p01">children</a></li>
				<li><a href="#p02">height</a></li>
				<li><a href="#p03">parent</a></li>
				<li><a href="#p04">width</a></li>
				<li><a href="#p05">x</a></li>
				<li><a href="#p06">y</a></li>
			</ul>
		</div><!-- /main__section -->


		<div class="main__section">
			<h2 class="main__title--h2">方法</h2>

			<div id="m01" class="main__subsection">
<pre class="main__pre--code">
addChild ( child ) <span class="pre__type">Object</span>
</pre>
				<p class="mb10px">往容器中添加一个子对象。</p>
				<div class="params">
					<h4>参数：</h4>
					<ul class="params-list">
						<li class="param">
							<code class="param-name">child</code>
							<span class="type">Object</span>
							<div class="param-description">
								<p>要添加的子对象。</p>
							</div>
						</li>
					</ul>
					<h4>返回值：</h4>
					<p><span class="pre__type">Object:</span> <br />
					被添加的子对象。</p>
				</div>
			</div><!-- /div -->

			<div id="m02" class="main__subsection">
<pre class="main__pre--code">
addChildAt ( child  index ) <span class="pre__type">Object</span>
</pre>
				<p class="mb10px">将子对象添加到指定索引位置。</p>
				<div class="params">
					<h4>参数：</h4>
					<ul class="params-list">
						<li class="param">
							<code class="param-name">child</code>
							<span class="type">Object</span>
							<div class="param-description">
								<p>要添加的子对象。</p>
							</div>
						</li>
						<li class="param">
							<code class="param-name">index</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>欲添加到的位置索引。</p>
							</div>
						</li>
					</ul>
					<h4>返回值：</h4>
					<p><span class="pre__type">Object:</span> <br />
					被添加的子对象。</p>
				</div>
			</div><!-- /div -->

			<div id="m03" class="main__subsection">
<pre class="main__pre--code">
move ( x , y , width , height )
</pre>
				<p class="mb10px">同时设置x坐标、y坐标、宽度和高度。</p>
				<div class="params">
					<h4>参数：</h4>
					<ul class="params-list">
						<li class="param">
							<code class="param-name">x</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>窗口层的x坐标。</p>
							</div>
						</li>
						<li class="param">
							<code class="param-name">y</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>窗口层的y坐标。</p>
							</div>
						</li>
						<li class="param">
							<code class="param-name">width</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>窗口层的宽度。</p>
							</div>
						</li>
						<li class="param">
							<code class="param-name">height</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>窗口层的高度。</p>
							</div>
						</li>
					</ul>
				</div>
			</div><!-- /div -->


			<div id="m04" class="main__subsection">
<pre class="main__pre--code">
removeChild ( child ) <span class="pre__type">Object</span>
</pre>
				<p class="mb10px">从容器中移除一个子对象。</p>
				<div class="params">
					<h4>参数：</h4>
					<ul class="params-list">
						<li class="param">
							<code class="param-name">child</code>
							<span class="type">Object</span>
							<div class="param-description">
								<p>要移除的子对象。</p>
							</div>
						</li>
					</ul>
					<h4>返回值：</h4>
					<p><span class="pre__type">Object:</span> <br />
					被移除的子对象。</p>
				</div>
			</div><!-- /div -->

			<div id="m05" class="main__subsection">
<pre class="main__pre--code">
removeChildAt ( index ) <span class="pre__type">Object</span>
</pre>
				<p class="mb10px">移除指定索引处的子对象。</p>
				<div class="params">
					<h4>参数：</h4>
					<ul class="params-list">
						<li class="param">
							<code class="param-name">index</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>要移除的子对象的索引。</p>
							</div>
						</li>
					</ul>
					<h4>返回值：</h4>
					<p><span class="pre__type">Object:</span> <br />
					被移除的子对象。</p>
				</div>
			</div><!-- /div -->

			<div id="m06" class="main__subsection">
<pre class="main__pre--code">
update ()
</pre>
				<p class="mb10px">更新窗口层。</p>
			</div><!-- /div -->

		</div><!-- /main__section -->


		<div class="main__section">
			<h2 class="main__title--h2">属性</h2>

			<div id="p01" class="main__subsection">
<pre class="main__pre--code">
children <span class="pre__type">Array</span>
</pre>
				<p class="mb10px">[只读] 窗口层的子对象数组。</p>
			</div><!-- /div -->

			<div id="p02" class="main__subsection">
<pre class="main__pre--code">
height <span class="pre__type">Number</span>
</pre>
				<p class="mb10px">窗口层的高度。</p>
			</div><!-- /div -->

			<div id="p03" class="main__subsection">
<pre class="main__pre--code">
parent <span class="pre__type">Object</span>
</pre>
				<p class="mb10px">[只读]窗口层的父对象。</p>
			</div><!-- /div -->

			<div id="p04" class="main__subsection">
<pre class="main__pre--code">
width <span class="pre__type">Number</span>
</pre>
				<p class="mb10px">窗口层的高度。</p>
			</div><!-- /div -->

			<div id="p05" class="main__subsection">
<pre class="main__pre--code">
x <span class="pre__type">Number</span>
</pre>
				<p class="mb10px">窗口层的x坐标。</p>
			</div><!-- /div -->

			<div id="p06" class="main__subsection">
<pre class="main__pre--code">
y <span class="pre__type">Number</span>
</pre>
				<p class="mb10px">窗口层的y坐标。</p>
			</div><!-- /div -->


		</div><!-- /main__section -->


	</div><!-- /main -->

</body>
</html>
